package com.ktwlsoft.archivemanage.domain.dao.entity.register;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import javax.validation.constraints.Size;

import java.io.Serializable;
import java.util.Date;

 /**
  * account_register--账号注册
  *
  * @author zhuhe on 2020-07-09 10:41:39
  * @version 1.0
  */
@ApiModel("account_register--账号注册-AccountRegister")
@Data
public class AccountRegister implements Serializable{

    /**待审核*/
    public static final String WAIT_FOR = "WAIT_FOR";
    /**已通过*/
    public static final String ADOPT = "ADOPT";
    /**已打回*/
    public static final String REPULSE = "REPULSE";

    /**主键**/
    @ApiModelProperty("主键")
    private Long id;

    /**单位名称**/
    @ApiModelProperty("单位名称")
    @Size(max = 30, message = "单位名称参数超长")
    private String unitName;

    /**父级单位id**/
    @ApiModelProperty("父级单位id")
    private Long pid;

    /**单位地址**/
    @ApiModelProperty("单位地址")
    @Size(max = 1000, message = "单位地址参数超长")
    private String address;

    /**单位性质**/
    @ApiModelProperty("单位性质")
    @Size(max = 30, message = "单位性质参数超长")
    private String unitNature;

    /**单位电话**/
    @ApiModelProperty("单位电话")
    @Size(max = 30, message = "单位电话参数超长")
    private String unitTele;

    /**账号**/
    @ApiModelProperty("账号")
    @Size(max = 30, message = "账号参数超长")
    private String account;

    /**分管领导**/
    @ApiModelProperty("分管领导")
    @Size(max = 30, message = "分管领导参数超长")
    private String departLeader;

    /**档案员**/
    @ApiModelProperty("档案员")
    @Size(max = 30, message = "档案员参数超长")
    private String recorder;

    /**档案员电话**/
    @ApiModelProperty("档案员电话")
    @Size(max = 30, message = "档案员电话参数超长")
    private String recorderTele;

    /**状态:待审核(WAIT_FOR),已通过(ADOPT),已打回(REPULSE)**/
    @ApiModelProperty("状态:待审核(WAIT_FOR),已通过(ADOPT),已打回(REPULSE)")
    @Size(max = 10, message = "状态参数超长")
    private String state;

    /**原因**/
    @ApiModelProperty("原因")
    @Size(max = 500, message = "原因参数超长")
    private String reason;

    /**数据状态:-1.删除,1.正常,2.禁用**/
    @ApiModelProperty("数据状态:-1.删除,1.正常,2.禁用")
    private Integer dataState;

    /**创建人**/
    @ApiModelProperty("创建人")
    @Size(max = 30, message = "创建人参数超长")
    private String createName;

    /**创建人id**/
    @ApiModelProperty("创建人id")
    private Long createId;

    /**创建时间**/
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**更新人**/
    @ApiModelProperty("更新人")
    @Size(max = 30, message = "更新人参数超长")
    private String updateName;

    /**更新人id**/
    @ApiModelProperty("更新人id")
    private Long updateId;

    /**更新时间**/
    @ApiModelProperty("更新时间")
    private Date updateTime;
}
